﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Inspinia_MVC5.Models
{
    /// <summary>
    /// 图书类别表
    /// </summary>
    public class BookType
    {
        public int ID { get; set; }

        [Required]
        [StringLength(50)]
        [Display(Name = "书目类别名")]

        public string TypeName { get; set; }

        [StringLength(50)]
        [Display(Name = "类别描述")]

        public string TypeDesc { get; set; }

        //[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        //public virtual ICollection<Book> Book { get; set; }

        //[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<Ebook> Ebook { get; set; }
    }
}